######################################### 
### Iberian & gaelic events by Korall ### 
######################################### 


event = { 

   id = 5133 
   trigger = {
	NOT = { flag = e5133 }
	not = {
		AND = {
			exists = EIR 
			exists = SCO 
		}
	}    
	owned = { province = 238 data = -1} 
	owned = { province = 232 data = -1} 
	NOT = {
		AND = {
			owned = { province = 385 data = -1} # 
			owned = { province = 376 data = -1} # 
			owned = { province = 386 data = -1} # 
			owned = { province = 408 data = -1} # 
			owned = { province = 422 data = -1} # 
		}
	}
#	or = { 
#		event = 3004 
#		event = 20008 
#		event = 20015 
#		event = 20016 
#		event = 20017 
#		event = 20022 
#		event = 20023 
#	}
	NOT = {
		core = { province = 236 data = ENG }
		core = { province = 414 data = ENG }
	}
      } 
   random = no 
   country = ENG 
   name = " " 
   desc = "     ,   " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "   !" 
	command = { type = badboy value = -5 }
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 236 } # 
	command = { type = addcore which = 237 }
	command = { type = addcore which = 238 }
	command = { type = addcore which = 239 }
	command = { type = addcore which = 414 } # 
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = sleepevent which = 5134 }
	command = { type = setflag which = e5133 }
   } 
} 

event = { 

   id = 5134 
   trigger = {
	NOT = { flag = e5134 }
	not = {
		AND = {
			exists = EIR 
			exists = SCO
		}
	}
	owned = { province = 231 data = -1} 
	owned = { province = 232 data = -1} 
	owned = { province = 234 data = -1} 
	owned = { province = 235 data = -1} 
	or= { 
		owned = { province = 233 data = -1} 
		owned = { province = 416 data = -1} 
	}
	NOT = {
		core = { province = 231 data = POR }
		core = { province = 414 data = POR }
	}
      } 
   random = no 
   country = POR 
   name = " " 
   desc = "              " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "      "
	command = { type = badboy value = -5 }
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 231 } # 
	command = { type = addcore which = 232 }
	command = { type = addcore which = 233 }
	command = { type = addcore which = 234 }
	command = { type = addcore which = 235 }
	command = { type = addcore which = 414 } # 
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = setflag which = e5133 }
	command = { type = sleepevent which = 5134 } 
	}
} 

event = { 

   id = 5135 
   trigger = { 
	NOT = { flag = e5135 }
	not = { 
		exists = CAS 
		exists = SPA
	}
	owned = { province = 436 data = -1} 
	NOT = {
		core = { province = 436 data = POR }
	}
      } 
   random = no 
   country = POR 
   name = "  !!!" 
   desc = "    ,           .               " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
            deathdate = { day = 1 month = january year = 1490 } 
    
   action_a ={             
      name = "  !"
	command = { type = badboy value = -5 }
      command = { type = stability value = 2 } 
      command = { type = addcore which = 429 } 
      command = { type = addcore which = 430 } 
      command = { type = addcore which = 431 } 
      command = { type = addcore which = 432 } 
      command = { type = addcore which = 433 } 
      command = { type = addcore which = 435 } 
      command = { type = addcore which = 436 } 
      command = { type = addcore which = 437 } 
      command = { type = addcore which = 438 } 
      command = { type = addcore which = 439 } 
      command = { type = addcore which = 440 } 
      command = { type = addcore which = 443 } 
      command = { type = addcore which = 444 } 
      command = { type = addcore which = 445 }
      command = { type = setflag which = e5135 }   
   } 
} 

event = { 

   id = 5136 
   trigger = {
	not = {
		owned = { province = 436 data = -1}
	}
	NOT = { flag = e5136 }
	flag = e5135
	core = { province = 436 data = POR }
      } 
   random = no 
   country = POR 
   name = "  " 
   desc = "          ,         " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1490 } 
    
   action_a ={             
      name = " !!!" 
      command = { type = stability value = -1 } 
      command = { type = removecore which = 429 } 
      command = { type = removecore which = 430 } 
      command = { type = removecore which = 431 } 
      command = { type = removecore which = 432 } 
      command = { type = removecore which = 433 } 
      command = { type = removecore which = 435 } 
      command = { type = removecore which = 436 } 
      command = { type = removecore which = 437 } 
      command = { type = removecore which = 438 } 
      command = { type = removecore which = 439 } 
      command = { type = removecore which = 440 } 
      command = { type = removecore which = 443 } 
      command = { type = removecore which = 444 } 
      command = { type = removecore which = 445 }
	command = { type = setflag which = e5136 }   
   } 
} 

#        - . 
event = { 
   id = 5137 
        trigger = {
	not = { flag = e5136 } 
        flag = e5135  
        owned = { province = 443 data =-1 } 
	owned = { province = 445 data =-1 } 
	owned = { province = 436 data =-1 }
	} 
   random = no 
   country = POR 
   name = "EVENTNAME3150" 
   desc = "EVENTHIST3150" 
   style = 1 

   date = { day = 1 month = january year = 1493 } 
	offset = 0
	deathdate = { day = 2 month = january year = 1493 } 

   action_a ={ name = "ACTIONNAME3150A" 
      command = { type = domestic which = INNOVATIVE value = -3 } 
      command = { type = population which = 443 value = -18000 } 
      command = { type = population which = 439 value = -8000 } 
      command = { type = population which = 438 value = -5000 } 
      command = { type = religiousrevolt which = 438 } 
      command = { type = religiousrevolt which = 443 } 
      command = { type = provincereligion which = 438 value = catholic } 
      command = { type = provincereligion which = 443 value = catholic } 
      command = { type = stability value = -1 } 
      command = { type = trigger which = 3654 } 
      command = { type = trigger which = 3652 } 
      command = { type = trigger which = 3657 } 
      command = { type = sleepevent which = 3150 }
   } 

   action_b ={ name = "ACTIONNAME3150B" 
      command = { type = domestic which = INNOVATIVE value = -4 } 
      command = { type = population which = 443 value = -20000 } 
      command = { type = population which = 439 value = -9000 } 
      command = { type = population which = 438 value = -6000 } 
      command = { type = population which = 444 value = -24000 } 
      command = { type = population which = 445 value = -3500 } 
      command = { type = provincereligion which = 438 value = catholic } 
      command = { type = provincereligion which = 443 value = catholic } 
      command = { type = provincereligion which = 444 value = catholic } 
      command = { type = provincereligion which = 445 value = catholic } 
      command = { type = religiousrevolt which = 438 } 
      command = { type = religiousrevolt which = 443 } 
      command = { type = religiousrevolt which = 444 } 
      command = { type = religiousrevolt which = 445 } 
      command = { type = stability value = -3 } 
      command = { type = trigger which = 3728 } 
      command = { type = trigger which = 3729 } 
      command = { type = trigger which = 3730 } 
      command = { type = sleepevent which = 3150 } 
   } 
} 

##        (- )     . 
event = { 

   id = 5138 
   trigger = {
	NOT = { event = 5138 }
        not = { 
		AND = {
			exists = EIR 
			exists = SCO 
		}
	}    
	owned = { province = 238 data = -1} 
	owned = { province = 232 data = -1} 
	flag = e5134 
	NOT = {
		AND = {
			owned = { province = 385 data = -1} # 
			owned = { province = 376 data = -1} # 
			owned = { province = 386 data = -1} # 
			owned = { province = 408 data = -1} # 
			owned = { province = 422 data = -1} # 
		}
	}
	NOT = {
		core = { province = 236 data = ENG }
		core = { province = 414 data = ENG }
	}
	}
   random = no 
   country = ENG 
   name = "    " 
   desc = "          .    ,      " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "     !!!" 
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 236 } # 
	command = { type = addcore which = 237 }
	command = { type = addcore which = 238 }
	command = { type = addcore which = 239 }
	command = { type = addcore which = 414 } # 
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = trigger which = 5139 }
	command = { type = setflag which = e5138 }
   } 
} 

event = { 

   id = 5139 
   random = no 
   country = POR 
   name = "  " 
   desc = "          .    ,      " 
   style = 1 

   action_a ={             
	name = "    !!!" 
	command = { type = stability value = -2 } 
	command = { type = remove_countryculture which = gaelic } 
	command = { type = removecore which = 231 } # 
	command = { type = removecore which = 232 }
	command = { type = removecore which = 233 }
	command = { type = removecore which = 234 }
	command = { type = removecore which = 235 }
	command = { type = removecore which = 414 } # 
	command = { type = removecore which = 415 }
	command = { type = removecore which = 416 }
	} 
} 

event = { 

   id = 5242 
   trigger = {
	NOT = { flag = e5242 }
	not = { 
		AND = {
			exists = EIR
			exists = SCO
		}
	}
	owned = { province = 231 data = -1} 
	owned = { province = 232 data = -1} 
	owned = { province = 234 data = -1} 
	owned = { province = 235 data = -1} 
	or= { 
		owned = { province = 233 data = -1} 
		owned = { province = 416 data = -1} 
	}
	flag = e5133
	NOT = {
		core = { province = 231 data = POR }
		core = { province = 414 data = POR }
	}
	}
   random = no 
   country = POR 
   name = "    " 
   desc = "        ,       -      " 
   style = 1 

   date = { day = 1 month = january year = 1419 } 
   offset = 15 
   deathdate = { day = 1 month = january year = 1821 } 

   action_a ={             
	name = "     !!!" 
	command = { type = stability value = 1 }
	command = { type = remove_countryculture which = gaelic }
	command = { type = add_countryculture which = gaelic }
	command = { type = addcore which = 231 } # 
	command = { type = addcore which = 232 }
	command = { type = addcore which = 233 }
	command = { type = addcore which = 234 }
	command = { type = addcore which = 235 }
	command = { type = addcore which = 414 } # 
	command = { type = addcore which = 415 }
	command = { type = addcore which = 416 }
	command = { type = trigger which = 5243 }
	command = { type = setflag which = e5242 } 
   } 
} 

event = { 
   id = 5243    
   random = no 
   country = ENG 
   name = "  " 
   desc = "        ,       -      " 
   style = 1 

   action_a ={             
	name = "    !!!" 
	command = { type = stability value = -2 }
	command = { type = removecore which = 236 } # 
	command = { type = removecore which = 237 }
	command = { type = removecore which = 238 }
	command = { type = removecore which = 239 }
	command = { type = removecore which = 414 } # 
	command = { type = removecore which = 415 }
	command = { type = removecore which = 416 }
	command = { type = remove_countryculture which = gaelic } 
	}
}